﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using vnMcdonald.Models;

namespace vnMcdonald.Controllers
{
    public class PaymentController : Controller
    {
        //
        // GET: /Payment/

        vnMcdonaldContext db = new vnMcdonaldContext();
        ShoppingCart cart = new ShoppingCart();
        public ActionResult Index()
        {
            ViewBag.TotalCart = cart.GetTotalPrice();
            if (Request.IsAjaxRequest())
            {
                return PartialView(cart.GetCart());
            }
            return View(cart.GetCart());
        }

    }
}
